package jedis;

import java.awt.Font;
import java.awt.image.BufferedImage;

import javax.servlet.http.HttpServletRequest;

import redis.clients.jedis.Jedis;
import util.base.ConfigBase;
import util.base.VerifyCodeUtil;
import util.base.impl.ConfigBaseImpl;

public class JedisJava {

	public static void main(String[] args) {
	 /*  ConfigBase Config=new ConfigBaseImpl();
	   String host=Config.getConfig("redisHost", "\\resources\\config.properties");
       Jedis jedis=new Jedis(host);
       System.out.println("连接成功");
       //查看服务是否运行
       System.out.println("服务正在运行: "+jedis.ping());
     //设置 redis 字符串数据
       jedis.set("runoobkey", "www.runoob.com");
       // 获取存储的数据并输出
       System.out.println("redis 存储的字符串为: "+ jedis.get("runoobkey"));
       jedis.lpush("list", "list1");
       jedis.lpush("list", "list2");
       jedis.lpush("list", "list3");
       jedis.lpush("list", "list4");
       jedis.lpush("list", "list5");*/
		
	  /* BufferedImage imags=new VerifyCodeUtil().getImages(100, 50, null, 4, 4,new Font("楷体",Font.BOLD,18));*/
	}
	
}
